package gjbsh.bangong.ds.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class 组织活动类型Example {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public 组织活动类型Example() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria and组织活动类型idIsNull() {
            addCriterion("组织活动类型ID is null");
            return (Criteria) this;
        }

        public Criteria and组织活动类型idIsNotNull() {
            addCriterion("组织活动类型ID is not null");
            return (Criteria) this;
        }

        public Criteria and组织活动类型idEqualTo(String value) {
            addCriterion("组织活动类型ID =", value, "组织活动类型id");
            return (Criteria) this;
        }

        public Criteria and组织活动类型idNotEqualTo(String value) {
            addCriterion("组织活动类型ID <>", value, "组织活动类型id");
            return (Criteria) this;
        }

        public Criteria and组织活动类型idGreaterThan(String value) {
            addCriterion("组织活动类型ID >", value, "组织活动类型id");
            return (Criteria) this;
        }

        public Criteria and组织活动类型idGreaterThanOrEqualTo(String value) {
            addCriterion("组织活动类型ID >=", value, "组织活动类型id");
            return (Criteria) this;
        }

        public Criteria and组织活动类型idLessThan(String value) {
            addCriterion("组织活动类型ID <", value, "组织活动类型id");
            return (Criteria) this;
        }

        public Criteria and组织活动类型idLessThanOrEqualTo(String value) {
            addCriterion("组织活动类型ID <=", value, "组织活动类型id");
            return (Criteria) this;
        }

        public Criteria and组织活动类型idLike(String value) {
            addCriterion("组织活动类型ID like", value, "组织活动类型id");
            return (Criteria) this;
        }

        public Criteria and组织活动类型idNotLike(String value) {
            addCriterion("组织活动类型ID not like", value, "组织活动类型id");
            return (Criteria) this;
        }

        public Criteria and组织活动类型idIn(List<String> values) {
            addCriterion("组织活动类型ID in", values, "组织活动类型id");
            return (Criteria) this;
        }

        public Criteria and组织活动类型idNotIn(List<String> values) {
            addCriterion("组织活动类型ID not in", values, "组织活动类型id");
            return (Criteria) this;
        }

        public Criteria and组织活动类型idBetween(String value1, String value2) {
            addCriterion("组织活动类型ID between", value1, value2, "组织活动类型id");
            return (Criteria) this;
        }

        public Criteria and组织活动类型idNotBetween(String value1, String value2) {
            addCriterion("组织活动类型ID not between", value1, value2, "组织活动类型id");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称IsNull() {
            addCriterion("组织活动类型名称 is null");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称IsNotNull() {
            addCriterion("组织活动类型名称 is not null");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称EqualTo(String value) {
            addCriterion("组织活动类型名称 =", value, "组织活动类型名称");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称NotEqualTo(String value) {
            addCriterion("组织活动类型名称 <>", value, "组织活动类型名称");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称GreaterThan(String value) {
            addCriterion("组织活动类型名称 >", value, "组织活动类型名称");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称GreaterThanOrEqualTo(String value) {
            addCriterion("组织活动类型名称 >=", value, "组织活动类型名称");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称LessThan(String value) {
            addCriterion("组织活动类型名称 <", value, "组织活动类型名称");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称LessThanOrEqualTo(String value) {
            addCriterion("组织活动类型名称 <=", value, "组织活动类型名称");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称Like(String value) {
            addCriterion("组织活动类型名称 like", value, "组织活动类型名称");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称NotLike(String value) {
            addCriterion("组织活动类型名称 not like", value, "组织活动类型名称");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称In(List<String> values) {
            addCriterion("组织活动类型名称 in", values, "组织活动类型名称");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称NotIn(List<String> values) {
            addCriterion("组织活动类型名称 not in", values, "组织活动类型名称");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称Between(String value1, String value2) {
            addCriterion("组织活动类型名称 between", value1, value2, "组织活动类型名称");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称NotBetween(String value1, String value2) {
            addCriterion("组织活动类型名称 not between", value1, value2, "组织活动类型名称");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文IsNull() {
            addCriterion("组织活动类型名称_英文 is null");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文IsNotNull() {
            addCriterion("组织活动类型名称_英文 is not null");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文EqualTo(String value) {
            addCriterion("组织活动类型名称_英文 =", value, "组织活动类型名称英文");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文NotEqualTo(String value) {
            addCriterion("组织活动类型名称_英文 <>", value, "组织活动类型名称英文");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文GreaterThan(String value) {
            addCriterion("组织活动类型名称_英文 >", value, "组织活动类型名称英文");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文GreaterThanOrEqualTo(String value) {
            addCriterion("组织活动类型名称_英文 >=", value, "组织活动类型名称英文");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文LessThan(String value) {
            addCriterion("组织活动类型名称_英文 <", value, "组织活动类型名称英文");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文LessThanOrEqualTo(String value) {
            addCriterion("组织活动类型名称_英文 <=", value, "组织活动类型名称英文");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文Like(String value) {
            addCriterion("组织活动类型名称_英文 like", value, "组织活动类型名称英文");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文NotLike(String value) {
            addCriterion("组织活动类型名称_英文 not like", value, "组织活动类型名称英文");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文In(List<String> values) {
            addCriterion("组织活动类型名称_英文 in", values, "组织活动类型名称英文");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文NotIn(List<String> values) {
            addCriterion("组织活动类型名称_英文 not in", values, "组织活动类型名称英文");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文Between(String value1, String value2) {
            addCriterion("组织活动类型名称_英文 between", value1, value2, "组织活动类型名称英文");
            return (Criteria) this;
        }

        public Criteria and组织活动类型名称英文NotBetween(String value1, String value2) {
            addCriterion("组织活动类型名称_英文 not between", value1, value2, "组织活动类型名称英文");
            return (Criteria) this;
        }

        public Criteria and排序号IsNull() {
            addCriterion("排序号 is null");
            return (Criteria) this;
        }

        public Criteria and排序号IsNotNull() {
            addCriterion("排序号 is not null");
            return (Criteria) this;
        }

        public Criteria and排序号EqualTo(BigDecimal value) {
            addCriterion("排序号 =", value, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号NotEqualTo(BigDecimal value) {
            addCriterion("排序号 <>", value, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号GreaterThan(BigDecimal value) {
            addCriterion("排序号 >", value, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号GreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("排序号 >=", value, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号LessThan(BigDecimal value) {
            addCriterion("排序号 <", value, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号LessThanOrEqualTo(BigDecimal value) {
            addCriterion("排序号 <=", value, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号In(List<BigDecimal> values) {
            addCriterion("排序号 in", values, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号NotIn(List<BigDecimal> values) {
            addCriterion("排序号 not in", values, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号Between(BigDecimal value1, BigDecimal value2) {
            addCriterion("排序号 between", value1, value2, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号NotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("排序号 not between", value1, value2, "排序号");
            return (Criteria) this;
        }

        public Criteria and状态IsNull() {
            addCriterion("状态 is null");
            return (Criteria) this;
        }

        public Criteria and状态IsNotNull() {
            addCriterion("状态 is not null");
            return (Criteria) this;
        }

        public Criteria and状态EqualTo(BigDecimal value) {
            addCriterion("状态 =", value, "状态");
            return (Criteria) this;
        }

        public Criteria and状态NotEqualTo(BigDecimal value) {
            addCriterion("状态 <>", value, "状态");
            return (Criteria) this;
        }

        public Criteria and状态GreaterThan(BigDecimal value) {
            addCriterion("状态 >", value, "状态");
            return (Criteria) this;
        }

        public Criteria and状态GreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("状态 >=", value, "状态");
            return (Criteria) this;
        }

        public Criteria and状态LessThan(BigDecimal value) {
            addCriterion("状态 <", value, "状态");
            return (Criteria) this;
        }

        public Criteria and状态LessThanOrEqualTo(BigDecimal value) {
            addCriterion("状态 <=", value, "状态");
            return (Criteria) this;
        }

        public Criteria and状态In(List<BigDecimal> values) {
            addCriterion("状态 in", values, "状态");
            return (Criteria) this;
        }

        public Criteria and状态NotIn(List<BigDecimal> values) {
            addCriterion("状态 not in", values, "状态");
            return (Criteria) this;
        }

        public Criteria and状态Between(BigDecimal value1, BigDecimal value2) {
            addCriterion("状态 between", value1, value2, "状态");
            return (Criteria) this;
        }

        public Criteria and状态NotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("状态 not between", value1, value2, "状态");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}